import java.util.Arrays;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-18
 * Time:10:24
 */
public class Text1 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3};
        func(arr);
        System.out.println("arr[0] = " + arr[0]);
    }
    public static void func(int[] a) {
        a=new int[]{4,5,6};
        System.out.println("a数组的值："+Arrays.toString(a));
        a[0]=20;
        System.out.println("a[0] = " + a[0]);

    }
}
